<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/7/1
  Time: 18:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户修改</title>
    <script>
        function cancel() {
            window.location.href = "${request.contextPath}/index.jsp";
        }
    </script>
    <link rel="stylesheet" type="text/css" href="css/nav.css">
</head>
<body>
<nav>
    <ul>
        <li><a href="index.jsp">用户管理</a></li>
        <li><a href="logs.jsp">日志查看</a></li>
        <li><a href="help.jsp">帮助</a></li>
        <li style="float: right;"><a href="/logoutServlet">×</a></li>
    </ul>
</nav>
<div id="container">
    <form action="/updateSuccessCustomer" method="post">
        <input name="id" type="hidden" value="${UpdateCustomer.id}"/><br>
        <div class="input-tex">名称:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="name" type="text"
                                                                                   value="${UpdateCustomer.name}"/>
        </div>
        <div class="input-tex">密码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="pwd" type="password"
                                                                                   value="${UpdateCustomer.pwd}"/></div>
        <div class="input-tex">昵称:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="nickname" type="text"
                                                                                   value="${UpdateCustomer.nickname}"/>
        </div>
        <div class="input-tex">性别:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="sex" type="text"
                                                                                   value="${UpdateCustomer.sex}"/></div>
        <div class="input-tex"> 生日:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="birthday" type="date"
                                                                                    value="${UpdateCustomer.birthday}"/>
        </div>
        <div class="input-tex"> 工作单位:<input name="workunit" type="text" value="${UpdateCustomer.workUnit}"/></div>
        <div class="input-tex"> 证件类型:<select name="cardtype" required value="${UpdateCustomer.cardType}">
            <option>身份证</option>
            <option>护照</option>
            <option>其他</option>
        </select></div>
        <div class="input-tex">证件号码:<input name="cardno" type="text" value="${UpdateCustomer.cardNo}"/></div>
        <div class="input-tex">联系方式:<input name="tel" type="tel" value="${UpdateCustomer.tel}"/></div>
        <div class="input-tex">地址:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="address" type="text"
                                                                                   value="${UpdateCustomer.address}"/>
        </div>
        <input type="submit" value="修改">
        <input type="button" onclick="cancel()" value="取消"><br>
    </form>
</div>
</body>
</html>
